package com.javaeye.common.web;
/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
import java.util.List;

import com.javaeye.common.dto.Module;
import com.javaeye.common.dto.DTO;

public class MenuModule implements DTO {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6555947788498536364L;

	private String name;
	
	private Module menu;
	
	private List<Module> childMenu;
	
	public MenuModule(Module menu, List<Module> childMenu) {
		this.menu = menu;
		name = menu.getName();
		this.childMenu = childMenu;
	}

	public Module getMenu() {
		return menu;
	}

	public void setMenu(Module menu) {
		this.menu = menu;
	}

	public List<Module> getChildMenu() {
		return childMenu;
	}

	public void setChildMenu(List<Module> childMenu) {
		this.childMenu = childMenu;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
}
